<%--
  Created by IntelliJ IDEA.
  User: 小星打屁屁
  Date: 2015/3/25
  Time: 21:33
  To change this template use File | Settings | File Templates.
  contact me 243709758@qq.com
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>文章基本管理</title>

    <link href="${pageContext.request.contextPath}/css/mycss.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/bootstrap.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/bootstrap-theme.css" rel="stylesheet">

</head>
<body class="container">
<div class="head">
    <%@ include file="/jsp/admin/lib/admin_head.jsp"%>
</div>
<div class="nav">
    <%@ include file="/jsp/admin/lib/admin_nav.jsp"%>
    <hr>
</div>
<div class="row">
    <!-- 隔壁的一些框框 侧边栏 -->
    <div class="sidebar-offcanvas col-xs-2" id="sidebar"> <!-- sidebar-offcanvas -->
        <%@ include  file="/jsp/admin/lib/admin_contentsider.jsp" %>
    </div>
    <div class="col-md-8 blog-main">
        <!-- 				面包屑功能的开发 -->
        <br>
        <ol class="breadcrumb">
            <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
        </ol>
        <div class="content">
            <div class="panel panel-default">
                <div class="panel-body">
                    <table class="table table-striped">
                        <tr>
                            <td>#</td>
                            <td>文章标题</td>
                            <td>文章摘要</td>
                            <td>文章操作</td>
                            <td>文章预览</td>
                        </tr>
                        <c:forEach items="${articles}" var="article" varStatus="status">
                            <tr>
                                <td><c:out value="${status.index+1}" /> </td>
                                <td><c:out value="${article.title}"/> </td>
                                <td><c:out value="${ article.summary }"/></td>
                                <td>
                                    <a href="${pageContext.request.contextPath}/jsp/admin/content/article_update?id=${ article.id }">编辑</a>
                                   /<a href="${pageContext.request.contextPath}/jsp/admin/content/article_delete?id=${ article.id }">删除</a>
                                </td>
                                <td><a href="#">查看</a></td>
                            </tr>
                        </c:forEach>
                    </table>
                </div>
             </div>
        </div>
    </div>
</div>
</body>
</html>
